package com.ruoyi.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.InspectionResultMapper;
import com.ruoyi.purchase.domain.InspectionResult;
import com.ruoyi.purchase.service.IInspectionResultService;

/**
 * 检验指标结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-31
 */
@Service
public class InspectionResultServiceImpl implements IInspectionResultService 
{
    @Autowired
    private InspectionResultMapper inspectionResultMapper;

    /**
     * 查询检验指标结果
     * 
     * @param id 检验指标结果主键
     * @return 检验指标结果
     */
    @Override
    public InspectionResult selectInspectionResultById(Long id)
    {
        return inspectionResultMapper.selectInspectionResultById(id);
    }

    /**
     * 查询检验指标结果列表
     * 
     * @param inspectionResult 检验指标结果
     * @return 检验指标结果
     */
    @Override
    public List<InspectionResult> selectInspectionResultList(InspectionResult inspectionResult)
    {
        return inspectionResultMapper.selectInspectionResultList(inspectionResult);
    }

    /**
     * 新增检验指标结果
     * 
     * @param inspectionResult 检验指标结果
     * @return 结果
     */
    @Override
    public int insertInspectionResult(InspectionResult inspectionResult)
    {
        return inspectionResultMapper.insertInspectionResult(inspectionResult);
    }

    /**
     * 修改检验指标结果
     * 
     * @param inspectionResult 检验指标结果
     * @return 结果
     */
    @Override
    public int updateInspectionResult(InspectionResult inspectionResult)
    {
        return inspectionResultMapper.updateInspectionResult(inspectionResult);
    }

    /**
     * 批量删除检验指标结果
     * 
     * @param ids 需要删除的检验指标结果主键
     * @return 结果
     */
    @Override
    public int deleteInspectionResultByIds(Long[] ids)
    {
        return inspectionResultMapper.deleteInspectionResultByIds(ids);
    }

    /**
     * 删除检验指标结果信息
     * 
     * @param id 检验指标结果主键
     * @return 结果
     */
    @Override
    public int deleteInspectionResultById(Long id)
    {
        return inspectionResultMapper.deleteInspectionResultById(id);
    }
}
